package com.laotou99.wmsjjj.wmsjjj;

import static org.junit.Assert.assertEquals;

import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.alibaba.fastjson.JSON;
import com.laotou99.wmsjjj.wmsjjj.bean.vo.COUNTLOTVO;
import com.laotou99.wmsjjj.wmsjjj.service.LOTService;

@RunWith(SpringRunner.class)
@SpringBootTest
public class WmsjjjINVTest4 {
	
	@Autowired
	LOTService lotService;

	@Test
	public void contextLoads() {
		System.out.println("first load");}
	
	@Before
	public void before() {
		System.out.println("before");}
	
	@After
	public void after() {
		System.out.println("after()");}

	@Test
	public void test1() {
		System.out.println("test1");
		String str1 = lotService.showAllLot();
		System.out.println("str1-=>"+str1);
		assertEquals(1+1, 2);
	}
	
	@Test
	public void test2() {
		System.out.println("test2");
		List<COUNTLOTVO> list1 = 
			lotService.CountNumAllSku();
		
		System.out.println("list1-=>"
			+JSON.toJSONString(list1));
		assertEquals(1+1, 2);
	}
	
	@Test
	public void test3() {
		System.out.println("test3");

		assertEquals(1+1, 2);
	}
	
}
